/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Hochschule Heilbronn
 * License Type: Academic
 */
package de.hhn.pmt.tour.u6;

public class Coordinates {
	public Coordinates() {
	}

	private int ID;

	private de.hhn.pmt.tour.u6.Station station;

	private de.hhn.pmt.tour.u6.Location poi;

	private float longitude;

	private float latitude;

	private void setID(int value) {
		this.ID = value;
	}

	public int getID() {
		return ID;
	}

	public int getORMID() {
		return getID();
	}

	public void setLongitude(float value) {
		this.longitude = value;
	}

	public float getLongitude() {
		return longitude;
	}

	public void setLatitude(float value) {
		this.latitude = value;
	}

	public float getLatitude() {
		return latitude;
	}

	public void setPoi(de.hhn.pmt.tour.u6.Location value) {
		if (this.poi != value) {
			de.hhn.pmt.tour.u6.Location lpoi = this.poi;
			this.poi = value;
			if (value != null) {
				poi.setCoordinates(this);
			} else {
				lpoi.setCoordinates(null);
			}
		}
	}

	public de.hhn.pmt.tour.u6.Location getPoi() {
		return poi;
	}

	public void setStation(de.hhn.pmt.tour.u6.Station value) {
		if (this.station != value) {
			de.hhn.pmt.tour.u6.Station lstation = this.station;
			this.station = value;
			if (value != null) {
				station.setCoordinates(this);
			} else {
				lstation.setCoordinates(null);
			}
		}
	}

	public de.hhn.pmt.tour.u6.Station getStation() {
		return station;
	}

	public float getLongditude() {
		// TODO: Implement Method
		throw new UnsupportedOperationException();
	}

	public void setLongditude(float longditude) {
		// TODO: Implement Method
		throw new UnsupportedOperationException();
	}

	public String toString() {
		return String.valueOf(getID());
	}

}
